package org.chen.aao.ai.feign.fallback;

import lombok.extern.slf4j.Slf4j;
import org.chen.aao.ai.feign.SubsServiceClient;
import org.chen.aao.common.response.Result;
import org.chen.aao.common.subscription.dto.SubscriptionStatusResponse;
import org.chen.aao.common.subscription.entity.Subscription;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class SubsFeignFallback implements SubsServiceClient {
    @Override
    public Result<SubscriptionStatusResponse> getSubscriptionStatusById(Long userId) {
        log.warn("订阅服务调用失败，使用fallback，userId: {}", userId);

        return Result.error("订阅服务不可用");
    }
}
